package day7;

import java.io.FileInputStream;
import java.io.InputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileIn2 {
    public static void main(String[] args) {
        try {
            InputStream in = new FileInputStream("D:\\tmp\\fuyang.txt");
            byte b[]=new byte[30];
            int len=0;
            while ((len=in.read(b))!=-1){
                String s=new String(b,0,len);
                System.out.println(s);
            }
            System.out.println();
            in.close();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
